/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.ModularListSetMapper;
public class ModularListSet extends BaseAction
{
    @Autowired(required=false)
	private ModularListSetMapper mapper;
    /**
    模块列表配置
    */
    
    public Map modularListSet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_menu=mapper.s_menu(params);
        result.put("s_menu", s_menu);
        
        return result;
    }
    /**
    配置选项
    */
    
    public Map modularOption() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> l_lookuplist_catrgory=mapper.l_lookuplist_catrgory(params);
        result.put("l_lookuplist_catrgory", l_lookuplist_catrgory);
        
        
        SQLList<SQLMap> l_container_menu_catrgory=mapper.l_container_menu_catrgory(params);
        result.put("l_container_menu_catrgory", l_container_menu_catrgory);
        
        return result;
    }
    /**
    模块菜单
    */
    
    public Map modularMenu() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> ts_container=mapper.ts_container(params);
        ts_container.setSelectNone("系统列表明细");
        result.put("ts_container", ts_container);
        
        return result;
    }
    /**
    图标设置
    */
    
    public Map modularPicture() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_images=mapper.s_images(params);
        result.put("s_images", s_images);
        
        return result;
    }
    /**
    模块菜单修改
    */
    
    public Map modularMenuSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        for (SQLMap emt:hqlBean.getTableElements("ts_container_menu")){
            params=new SQLParam(request,emt.getMap());
            mapper.ts_umenu(params);
        }
        
        return result;
    }
}